<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <title><?php if(isset($title)) { echo CHtml::encode($title).' - ';} echo CHtml::encode(Yii::app()->name);?></title>
	<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
	<link href="<?php echo Yii::app()->request->baseUrl; ?>/public/css/style-backend.css" type="text/css" rel="stylesheet">
	<link href="<?php echo Yii::app()->request->baseUrl; ?>/html/sdmenu/sdmenu.css" type="text/css" rel="stylesheet" />
	<script src="<?php echo Yii::app()->request->baseUrl; ?>/html/sdmenu/sdmenu.js" type="text/javascript" ></script>
    <!--<link type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/public/js/jquery/css/jquery-ui.custom.css" rel="stylesheet" />
	<link type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/public/js/jquery/plugins/tipsy/stylesheets/tipsy.css" rel="stylesheet" />
	<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/public/js/jquery/js/jquery.min.js"></script>
	<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/public/js/jquery/js/jquery-ui.custom.min.js"></script>
	<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/public/js/jquery/plugins/tipsy/javascripts/jquery.tipsy.js"></script>
	<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/public/js/jquery/plugins/showMessage/js/jquery.showMessage.min.js" charset="utf-8"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/public/js/common.js"></script>
	-->
    <?php if(isset(Yii::app()->session['user_id']) && Yii::app()->session['user_id']) { ?>
	<script type="text/javascript">
	// <![CDATA[
	var myMenu;
	window.onload = function() {
		myMenu = new SDMenu("my_menu");
		myMenu.init();
	};
	// ]]>
	</script>
    <?php } ?>
</head>
<body>
<?php if(isset(Yii::app()->session['user_id']) && Yii::app()->session['user_id']) { ?>
<div id="container">
	<div id="header-admin">
		<div id="logo-admin">
			<img src="<?php echo Yii::app()->request->baseUrl; ?>/html/image/logo-admin.png" alt="Clever Solution"/>
		</div>
		<div id="shortcut-admin">
			<a href="<?php echo Yii::app()->request->baseUrl; ?>/login/logout" onmouseover="this.style.color ='#99CC33'" onmouseout="this.style.color ='#82786f'">
                <?php echo Yii::t('common', '_LB_LOGOUT'); ?>
            </a>
		</div>
	</div>
<?php } ?>